class card{
    constructor(){
        this.$member = $('.member');
        this.$note = $('.note');
        this.$staff = $('.staff');
        this.$box_vip =$('.box_vip');
        this.$box_duanxin =$('.box_duanxin');
        this.$yuangong = $('.yuangong');
        this.$changeCheckCode = $('#changeCheckCode')
        this.add();
    }
    add(){
        let that = this;
        this.$member.click(()=>{
            that.$box_vip.css('display','block'); 
            that.$box_duanxin.css('display','none');
            that.$yuangong.css('display','none');
        })
        this.$note.click(()=>{
            that.$box_vip.css('display','none'); 
            that.$box_duanxin.css('display','block');
            that.$yuangong.css('display','none'); 

        })
        this.$staff.click(()=>{
            that.$box_vip.css('display','none'); 
            that.$box_duanxin.css('display','none');
            that.$yuangong.css('display','block'); 
        })
    }
}
new card();


